package net.meblabs.bookapp.util;

public class Message {

	public static enum MessageType {
		INFO, WARNING, ERROR
	}

	private final MessageType type;

	private final String text;

	public Message(MessageType type, String text) {
		this.type = type;
		this.text = text;
	}

	public MessageType getType() {
		return type;
	}

	public String getText() {
		return text;
	}

	public String toString() {
		return type + ": " + text;
	}

}